{template header}
<div class="container">


    <div class="row">
        <div class="col-md-8">


            <div class="panel panel-default">
                <div class="panel-heading">投票列表</div>
                <div class="panel-body">

                    <div class="votelist">
                        <ul>

                            {loop $arrVote $key $item}
                            <li>
                                <div class="photo">

                                    <a href="{tsUrl('user','topic',array('id'=>$item['user']['userid']))}"><img class="img-circle" title="{$item[user][username]}" src="{$item['user']['face']}" width="48" height="48" /></a>
                                    <p>{$item[user][username]}</p>
                                </div>
                                <div class="info">
                                    <strong><a href="{tsUrl('vote','show',array('id'=>$item['voteid']))}">{tsTitle($item['topic'])}</a></strong>
                                    {loop $item['vote'] $key $itemm}
                                    <br>
                                    <span class="pd10"><input type="radio" disabled /> {tsTitle($itemm['name'])}</span>
                                    {/loop}
                                    <br>
                                    <span class="pd10">......</span>
                                    <div class="tar"><span class="pd020">{php echo getTime(strtotime($item['addtime']),time())}</span><a class="btn btn-info" href="{tsUrl('vote','show',array('id'=>$item['voteid']))}">进入</a></div>
                                </div>
                            </li>
                            {/loop}
                            <div class="page">{$pageUrl}</div>





                        </ul>
                    </div>
                </div>
            </div>



        </div>

        <div class="col-md-4">

            <div class="panel panel-default">
                <div class="panel-body">
                    <a class="btn btn-success" href="{tsUrl('vote','add')}">发起投票</a>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">热门投票</div>
                <div class="panel-body">
                    <div class="commlist">
                        <ul>
                            {loop $arrHotVote $key $item}
                            <li class="pd010"><a href="{tsUrl('vote','show',array('id'=>$item['voteid']))}">{php echo cututf8($item['topic'],0,20)}</a></li>
                            {/loop}
                        </ul>
                    </div>
            </div>
            </div>

            <!--广告位-->
            {php doAction('gobad','300')}

        </div>
    </div>
</div>
{template footer}